package org.onionframework.persistence.model;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.onionframework.persistence.model.annotation.DomainModel;
import org.onionframework.persistence.model.annotation.ExtendPoint;

@Entity
@DomainModel
@Table(name="o_persistence_food")
public class Food extends AbstractModel {

	private static final long serialVersionUID = 8579295203491529009L;

	private String name;
	private FoodEx ex;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Transient
	@ExtendPoint
	public FoodEx getEx() {
		return ex;
	}

	public void setEx(FoodEx ex) {
		this.ex = ex;
	}

}
